package ooday01Exercise;

public class Teacher {
    //成员变量： sex，course，age
    //构造方法：
    //方法：teaching() prepareLessons()
    String name;
    char sex;
    String course;
    int age;
     Teacher(){

     }

     Teacher(String name,char sex,String course,int age){
         this.name=name;
         this.sex=sex;
         this.course=course;
         this.age=age;
     }
     void teaching(){
         System.out.println(name+"性别"+sex+"年龄"+age+"正在上"+course);
     }
     void prepareLessons(){
         System.out.println(name+"性别"+sex+"年龄"+age+"正在备"+course);
     }
}
